import  request  from "@/utils/request";
// 获取用户列表
export function getUserlist(data){
    return request({
        url:'/system/user/list',
        method:'post',
        data
    })
}
// 新增用户
export function addUserlist(data){
    return request({
        url:'/system/user/insert',
        data,
        method:'post'
    })
}
// 删除用户
export function delUserlist(id){
    return request({
        url:`/system/user/delete/${id}`,
        method:'delete'
    })
}
// 编辑用户
export function updaUserlist(data){
    return request({
        url:'/system/user/update',
        data,
        method:'put'
    })
}
// 回显
export function updateuser(id){
    return request({
        url:`/system/user/${id}`
    })
}
// 重置密码
export function resetlist(id){
    return request({
        url:`/system/user/resetPassword/${id}`
    })
}